package com.meilai.project.controller.web.business.customer;


import com.meilai.project.dto.CommonResult;
import com.meilai.project.service.business.customer.CustomerFollowTmpService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 客户跟进临时表 前端控制器
 * </p>
 *
 * @author xhy
 * @since 2022-01-06
 */
@RestController
@RequestMapping("api/web/customerFollowTmp")
public class CustomerFollowTmpController {
    @Autowired
    private CustomerFollowTmpService service;

    @GetMapping("/page")
    @ApiOperation("跟进ID获取客户的跟进信息")
    public CommonResult page(@RequestParam(name = "page", defaultValue = "1") Integer page,
                             @RequestParam(name = "page_size", defaultValue = "10") Integer page_size,
                             @RequestParam(name = "flow_id") Long flow_id) {
        return new CommonResult().success(service.page(page, page_size, flow_id));
    }
}

